﻿import React from 'react'
import {
  RouterProvider,
  createBrowserRouter,
  createRoutesFromElements,
  Route,
  Link
} from 'react-router-dom'
import Layout from '@/layouts/Layout'
import Home from '@/pages/Home'
import Recommend from '@/pages/Recommend'
import NotFound from '@/pages/NotFound'

const router = createBrowserRouter(
  createRoutesFromElements(
    <Route path="/" element={<Layout />}>
      <Route index element={<Home />} />
      <Route path="/recommend" element={<Recommend />} />
      <Route path="*" element={<NotFound />} />
    </Route>
  )
)

export { router }
